//
//  TopAllSuperView.m
//  LilyBBS
//
//  Created by lixing on 11-12-10.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "TopAllSuperView.h"

@implementation TopAllSuperView

@synthesize topAll;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; 
    // Do any additional setup after loading the view from its nib.
    UIActivityIndicatorView* indicatorView=[[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
    indicatorView.center=CGPointMake(160,160);
    [self.view addSubview:indicatorView];
    [indicatorView startAnimating];
}

-(void)viewDidAppear:(BOOL)animated{
    topAll = [[TopAll alloc]initWithNibName:@"Top10" bundle:nil];
    [self.view addSubview:topAll.view];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

-(void)dealloc{
    [topAll release];
    [super dealloc];
}

@end
